// AnimatedSwitch.less

// 很多动画都需要给路由对应组件最外层元素设置position: absolute;
.yzh-main {
    > div {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: $white;
    }
}
  
  // 帧动画
  .fade-enter {
    opacity: 0;
    transform: translateX(-30px)
  }
  
  .fade-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity .5s, transform .5s
  }
  
  .fade-exit {
    opacity: 1;
    transform: translateX(0)
  }
  
  .fade-exit-active {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .5s, transform .5s;
  }